GET api/v1/dataservice/getdatarow/{tableName}/{rowId}?fieldList[0]={fieldList[0]}&fieldList[1]={fieldList[1]}
Gets a Row of Data
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| tableName |
Name of the table. |
string |
Required |
| rowId |
The row id. |
string |
Required |
| fieldList |
The list of fields to return. (optional). If empty, all fields will be returned |
Collection of string |
Required |
Body Parameters
None.
Response Information
Resource Description
DataEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| RefId | string |
None. |
|
| RowId | string |
None. |
|
| Fields | Collection of DataField |
Required |
Response Formats
application/json, text/json
Sample:
{
"RefId": "sample string 1",
"RowId": "sample string 2",
"Fields": [
{
"Name": "sample string 1",
"Value": "sample string 2"
},
{
"Name": "sample string 1",
"Value": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<DataEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paperclip.IOTA.WebApi.Model">
<Fields>
<DataField>
<Name>sample string 1</Name>
<Value>sample string 2</Value>
</DataField>
<DataField>
<Name>sample string 1</Name>
<Value>sample string 2</Value>
</DataField>
</Fields>
<RefId>sample string 1</RefId>
<RowId>sample string 2</RowId>
</DataEntity>